package com.peanut.baby.mvp.search;

import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.peanut.baby.R;
import com.zhy.view.flowlayout.FlowLayout;
import com.zhy.view.flowlayout.TagAdapter;

import java.util.List;

/**
 * Created by anonymouslystudio on 2017/7/20.
 */

public class SearchTagAdapter extends TagAdapter<String>{
    public SearchTagAdapter(List<String> datas) {
        super(datas);
    }

    @Override
    public View getView(FlowLayout parent, int position, String s) {
        TextView textView = (TextView) LayoutInflater.from(parent.getContext()).inflate(R.layout.layout_item_tag,null);
        textView.setText(s);
        return textView;
    }
}
